package com.zxw.user.domain.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Xuewei.Zhang
 * @date 2022/5/27
 */
@Data
@NoArgsConstructor
public class IdLabelDTO {

    private Long id;

    private String label;

    public IdLabelDTO(Long id, String label) {
        this.id = id;
        this.label = label;
    }

    /**
     * 子菜单
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<IdLabelDTO> children;

}
